#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    connect(this, &Widget::MySignal1, this, &Widget::handleClick1);
    connect(this, &Widget::MySignal1, this, &Widget::handleClick2);
    connect(this, &Widget::MySignal2, this, &Widget::handleClick1);
    connect(this, &Widget::MySignal2, this, &Widget::handleClick3);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::handleClick1()
{
   qDebug() << "handleClick1";
}

void Widget::handleClick2()
{
    qDebug() << "handleClick2";
}

void Widget::handleClick3()
{
    qDebug() << "handleClick3";
}

void Widget::handleClick4()
{
    qDebug() << "handleClick4";
}

